package com.ql.design.observer;

// 观察者模式
public class Test {
	public static void main(String[] args) {
		Subject sub = new MySubject();
		
		sub.attach(new Observer1());
		
		sub.attach(new  Observer2());
		
		sub.operation();
		
	}
}
